﻿using System;
using System.Windows;

namespace Gmantis.Controls.Chart
{
    internal class ChartObservableCollection : System.Collections.ObjectModel.ObservableCollection<UIElement>
    {
        // Events
        internal event EventHandler OnClear;

        // Methods
        protected override void ClearItems()
        {
            if (this.OnClear != null)
            {
                this.OnClear(this, EventArgs.Empty);
            }
            base.ClearItems();
        }
    }
}
